package com.wu.flandre_api;

import com.wu.flandre_api.components.NettyClientComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * FlandreApiApplicationRunner <br/>
 *
 * @author 50816 <br/>
 * @date 2019/12/22 15:17 <br/>
 */
@Slf4j
@Component
public class FlandreApiApplicationRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("connect to flandre engine....");
        NettyClientComponent nettyClient = new NettyClientComponent("192.168.5.145", 25543);
        nettyClient.start();
    }
}
